from Tools import Log,send_email
import pytest,os
if __name__ == '__main__':
    Log()

    pytest.main([r'C:\Users\Kaka\PycharmProjects\PythonProject9.8最后一练\Case\test_wms.py','-s','--alluredir=results'])

    os.system(f'allure generate results -o allure-report --clean')

    send_email(['WMS.log','allure-report/index.html'])